package com.jiaquyun.jcps.entity

import com.lemlin.network.HttpServiceData

data class OrderListResponse(
    val data: MutableList<OrderListEntity> = mutableListOf()
) : HttpServiceData()

data class OrderListEntity(
    val createtime: Long,
    val distance: Int,
    val end_address: String,
    val id: Int,
    val mobile: String,
    val order_amount: String,
    val start_address: String,
    val user_note: String,
    val order_no: Int
)

data class OrderTabResponse(
    val data: OrderTabEntity
) : HttpServiceData()

data class OrderTabEntity(
    val to_be_picked_up: Int,
    val to_be_served: Int
)

data class OrderDetailsResponse(
    val data: OrderDetailsEntity
) : HttpServiceData()

data class OrderDetailsEntity(
    val createtime: Long,
    val distance: Int,
    val end_address: String,
    val end_lat: String,
    val end_lng: String,
    val id: Int,
    val mobile: String,
    val order_amount: String,
    val pay_name: String? = null,
    val price: String,
    val start_address: String,
    val user_note: String,
    val order_no: Int
)


data class OrderTodayListResponse(
    val data: MutableList<OrderTodayListEntity> = mutableListOf()
) : HttpServiceData() {
    var loadMore = false
}

data class OrderTodayListEntity(
    val end_address: String,
    val order_sn: String,
    val price: String,
    val service_time: Long,
    val start_address: String,
    val id: Int
)

data class OrderTodayDetailsResponse(
    val data: OrderTodayDetailsEntity
) : HttpServiceData()

data class OrderTodayDetailsEntity(
    val createtime: Long,
    val end_address: String,
    val end_lat: String,
    val end_lng: String,
    val id: Int,
    val mobile: String,
    val order_amount: String,
    val order_goods: MutableList<OrderGoodsListEntity> = mutableListOf(),
    val order_id: String,
    val pay_name: String,
    val price: String,
    val start_address: String,
    val user_note: String,
    val order_sn: String
)

data class OrderGoodsListEntity(
    val final_price: String,
    val goods_name: String,
    val goods_num: Int,
    val image: String
)